package org.example.java.service;

import com.baomidou.mybatisplus.extension.service.IService;
import javassist.NotFoundException;
import org.example.java.model.UserProfile;
import org.example.java.request.UserCreateRequest;
import org.example.java.request.UserUpdateRequest;
import org.springframework.stereotype.Service;

import java.math.BigInteger;
import java.util.Map;

@Service
public interface IUserProfileService extends IService<UserProfile> {
    UserProfile getByName(String name);
    Integer getCountByName(String name);
    Integer getCountByEmail(String email);
    Map<String, Object> createUserProfile(UserCreateRequest userCreateRequest);
    Map<String, Object> updateUserProfile(Long userId, UserUpdateRequest UserupdateRequest) throws NotFoundException;
    UserProfile getByUserId(Long userId) throws Exception;
    UserProfile getProfileCountByEmail(String email);
    boolean removeByUserId(Long userId);
}
